package com.beyond.trace.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售信息对象 t_trace_sale
 * 
 * @author yao
 * @date 2022-03-02
 */
@TableName("t_trace_sale")
public class TraceSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "sale_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long saleId;

    /** 产品 */
    @Excel(name = "产品")
    @ApiModelProperty(value = "产品")
    private String saleProduct;

    /** 销售门店 */
    @Excel(name = "销售门店")
    @ApiModelProperty(value = "销售门店")
    private String saleShop;

    /** 销售门店简介 */
    @Excel(name = "销售门店简介")
    @ApiModelProperty(value = "销售门店简介")
    private String saleShopExplain;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String salePic;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "销售日期")
    private Date saleTime;

    /** 销售人 */
    @Excel(name = "销售人")
    @ApiModelProperty(value = "销售人")
    private String salePerson;

    /** 销售人联系方式 */
    @Excel(name = "销售人联系方式")
    @ApiModelProperty(value = "销售人联系方式")
    private String salePersonPhone;

    /** 产品名称 */
    private String productName;

    public String getProductName() {
        return productName;
    }
    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setSaleProduct(String saleProduct) 
    {
        this.saleProduct = saleProduct;
    }

    public String getSaleProduct() 
    {
        return saleProduct;
    }
    public void setSaleShop(String saleShop) 
    {
        this.saleShop = saleShop;
    }

    public String getSaleShop() 
    {
        return saleShop;
    }
    public void setSaleShopExplain(String saleShopExplain) 
    {
        this.saleShopExplain = saleShopExplain;
    }

    public String getSaleShopExplain() 
    {
        return saleShopExplain;
    }
    public void setSalePic(String salePic) 
    {
        this.salePic = salePic;
    }

    public String getSalePic() 
    {
        return salePic;
    }
    public void setSaleTime(Date saleTime) 
    {
        this.saleTime = saleTime;
    }

    public Date getSaleTime() 
    {
        return saleTime;
    }
    public void setSalePerson(String salePerson) 
    {
        this.salePerson = salePerson;
    }

    public String getSalePerson() 
    {
        return salePerson;
    }
    public void setSalePersonPhone(String salePersonPhone) 
    {
        this.salePersonPhone = salePersonPhone;
    }

    public String getSalePersonPhone() 
    {
        return salePersonPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("saleProduct", getSaleProduct())
            .append("saleShop", getSaleShop())
            .append("saleShopExplain", getSaleShopExplain())
            .append("salePic", getSalePic())
            .append("saleTime", getSaleTime())
            .append("salePerson", getSalePerson())
            .append("salePersonPhone", getSalePersonPhone())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
